package xyz.lne.researchgroupmanage.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import xyz.lne.researchgroupmanage.entity.Task;
import xyz.lne.researchgroupmanage.entity.TaskUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.lne.researchgroupmanage.service.dataTransferObject.UserCommitTaskDTO;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author team7
 * @since 2021-01-19
 */
@Mapper
public interface TaskUserMapper extends BaseMapper<TaskUser> {

    @Update("update task_user set content=#{content} ,commit_time=#{commitTime} ,remark=#{remark} where task_id=#{taskId} and user_id=#{userId} and file_id=#{fileId} ")
    Integer updateTaskCommit(TaskUser taskUser);

    @Update("update task_user set status=#{status},content=#{content} ,commit_time=#{commitTime} ,remark=#{remark}  where task_id=#{taskId} and user_id=#{userId} and file_id=#{fileId} ")
    Integer updateTaskStatus(TaskUser taskUser);
}
